<%@page import="com.ym.b2b.cache.configcache.WebAppConfig"%>
<%@page import="com.ym.b2b.news.sqlbean.EmBNews"%>
<%@page import="java.util.List"%>
<%@page import="com.zc.commons.base.Result"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="b" uri="/b2b-tags" %>
<script>
/* 	setFocus(5); */
</script>
<link type="text/css" rel="stylesheet" href="<c:url value="/views/jsp/cms/news/lib/index.css" />">
<link type="text/css" rel="stylesheet" href="<c:url value="/views/jsp/cms/news/lib/head2014.css" />">
<div class="wrap main_body mb10 mt10 clearfix">
	<div class="con_left">
		<div class="f_l h340 mb10">
			<div class="focus new_focus">
				<a href="http://111.39.26.6:1800/admin/uploadPackage/plupload/img/lh.png"  target="_blank"><img  src="http://111.39.26.6:1800/admin/uploadPackage/plupload/img/lh.png" >
				<p class="new_title">恭喜安徽宣城医药正式开通</p>
				</a>
			</div>
		</div>
		<div class="f_m h340 w330 mb10">
			<b:showNews outResponseAttrName="topNews" limitRow="6"   getType="list" />
			<c:forEach items="${topNews.rows }" var="p" varStatus="inde" begin="0" end="2">
			<c:if test="${inde.index==1 }">
				<div class="article_row">
					<h3 class="title">
						<a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p.newsId}" class="black" title="${p.newsTitle }">${p.newsTitle }</a>
					</h3>
					<p class="content">${p.newsBrief }</p>
				</div>
			</c:if>
			<c:if test="${inde.index==2 }">
				<div class="article_row">
					<h3 class="title">
						<a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p.newsId}" class="black" title="${p.newsTitle }">${p.newsTitle }</a>
					</h3>
					<p class="content">${p.newsBrief }</p>
				</div>
			</c:if>	
			</c:forEach>	
				<div class="boted_box">
					<ul class="list_dot mt10">
					<c:forEach items="${topNews.rows }" var="p" varStatus="inde" begin="2" end="6">
						<li><a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p.newsId}" title="${p.newsTitle }">${p.newsTitle }</a></li>
					</c:forEach>
					</ul>
				</div>
		</div>
		
		<%
			int a = 0;
		%>
		<b:showCmsCategory outResponseAttrName="cmsCategory" getType="list" typeId="2"/>
		<c:forEach var="p" items="${cmsCategory }" varStatus="a">
		<c:if test="${p.newsTypeId!='278' }">

		<%a++; %>
			<c:if test="${a.index%2==0 }">
				<div class="f_l mb20">
			</c:if>
			<c:if test="${a.index%2==1 }">
				<div class="f_m mb20">
			</c:if>
			<%
			String name = "hangyeRet"+a;
			%>
			<b:showNews outResponseAttrName="<%=name %>" limitRow="10"  newsTypeId="${p.newsTypeId }" getType="list"/>
				<div class="z_h3 clearfix">
					<h2>
						<a href="<c:url value="/news/searchPageNews.s" />?newsTypeId=${p.newsTypeId}">${p.name }</a>
					</h2>
					<a href="<c:url value="/news/searchPageNews.s" />?newsTypeId=${p.newsTypeId}">更多&gt;&gt;</a>
				</div>
			 <%
			 Result ret= (Result)request.getAttribute("hangyeRet"+a);
			 if(null!=ret){
			 %>
				<c:forEach var="p1" items="<%=ret.getRows() %>" varStatus="i" begin="0" end="1">
				<c:if test="${i.index eq 0}">
					<div class="z_info clearfix">
						<a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p1.newsId}" class="z_info_l">
							<c:if test="${empty  p1.smallPic}">
								<img src="<c:url value="/views/jsp/cms/news/lib/zwt.jpg" />" alt="${p1.newsTitle }">
							</c:if>
							<c:if test="${not empty  p1.smallPic}">
								<img src="<%=WebAppConfig.getPicPath() %>${p1.smallPic}" alt="${p1.newsTitle }">
							</c:if>
						</a>
						<p class="z_info_r">
							<a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p1.newsId}"  ><b>${p1.newsTitle }</b></a><span>${p1.newsBrief }</span>
						</p>
					</div>
				</c:if>
				</c:forEach>
				
				<ul class="list_dot">
				<c:forEach var="p1" items="<%=ret.getRows()  %>" varStatus="i" begin="1" end="11">
					<li><a href="<c:url value="/news/showNewsDetail.s" />?newsId=${p1.newsId}" title="${p1.newsTitle }">${p1.newsTitle }</a></li>
				</c:forEach>
				</ul>
			<%} %>
		</div>
		</c:if>
		</c:forEach>
	</div>
